package com.example.springbootdemo.yml;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.example.springbootdemo.yml.Animal;

@RestController
public class AnimalController {

	@Autowired
	private Animal animal;
    @RequestMapping("/")
    public String home() {
        return "--Hello " + animal.getName() + "!";
    }
}
